<template>
	<web-view :src="url"></web-view>
</template>

<script>
	
	export default{
		data(){
			return {
				url:""
			}
		},
		onLoad(options){
			let config={
			    web_protocol_url:this.$u.http.config.baseUrl+'/api/index/webProtocol',
			    web_show_url: this.$u.http.config.baseUrl+'/api/index/show',
			}
			console.log('redirect-options',options)
			let url=options.url||""
			let temp_key = url;
			if(url.substr(0,4)=='http'){
				
			}else{
				url = config[url]+'?'
				
				delete options.url
				for(let index in options){
					url += index+'='+options[index]+'&'
				}
				console.log(url)
			}
			
			this.url = url
			
		}
	}
</script>

<style>
</style>
